package main

import (
	"iot-base/devc/common/loader"
	"serial_port/service"
	"sync"
)

func main() {
	sw := sync.WaitGroup{}
	sw.Add(1)
	defer sw.Done()
	// 初始化.
	service.HubInit()
	loader.SetParam(false, "serial_port", 1, service.StartService)
	go service.Sv()
	sw.Wait()
	// todo o3 co nox 详细状态还需要测试一下.
}
